<?php
$CI = &get_instance();
$CI->load->database();
$query = $CI->db->query('select * from tbl_tieudebanggia');
$temp = $query->result();
$danhsachtieude = array();
foreach($temp as $r)
{
	$danhsachtieude[$r->id] = $r->id;
}
?>
<form method="post" enctype="multipart/form-data">
<div align="center">
	<?=form_dropdown('loaibang', $danhsachtieude)?>
    <input type="file" name="inputfile"/>
    <input type="submit" name="submit" value="Nhập">
</div>
</form>